package com.test.ssm.service.impl;

import com.test.ssm.dao.StudentDAO;
import com.test.ssm.pojo.Student;
import com.test.ssm.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 徒有琴
 */
@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDAO studentDAO;

    @Override
    public Student getStudentById(Integer id) {
        return studentDAO.getStudentById(id);
    }
}
